<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Theme extends Model
{

    public function getCategoryIdAttribute($value){

        $config= config('admin.writing');
        if($value!=null)
         return $config[$value];
        return $value;
    }
}
